#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-12-04 15:36
# @Author  : 少爷

def fib(n):
    if n == 1:
        return [1]
    if n == 2:
        return [1, 1]
    fibs = [1, 1]
    for i in range(2, n):
        fibs.append(fibs[-1] + fibs[-2])
    return fibs

print fib(10)
